﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinemax.DTO
{
    public class KhuyenMaiDTO
    {
        int _MaKhuyenMai;
        double _TiLeGiam;
        DateTime _ThoiGianKetThuc;
        string _LoaiKhuyenMai;

        public string LoaiKhuyenMai
        {
            get { return _LoaiKhuyenMai; }
            set { _LoaiKhuyenMai = value; }
        }

        public KhuyenMaiDTO(SP_GET_KHUYENMAIResult item)
        {
            // TODO: Complete member initialization
            _MaKhuyenMai = item.MaKhuyenMai;
            _TiLeGiam = item.TiLeGiam.Value;
            _LoaiKhuyenMai = item.TenKhuyenMai;
        }

        public DateTime ThoiGianKetThuc
        {
            get { return _ThoiGianKetThuc; }
            set { _ThoiGianKetThuc = value; }
        }

        public double TiLeGiam
        {
            get { return _TiLeGiam; }
            set { _TiLeGiam = value; }
        }

        public int MaKhuyenMai
        {
            get { return _MaKhuyenMai; }
            set { _MaKhuyenMai = value; }
        }
    }
}